#pragma once
#ifndef skySocket_h__
#define skySocket_h__
#include "./skyAdapter.h"
#ifdef _SYMBIAN
#include "./symbian/symSocket.h"
#else
#include "../adapter/windows/winSocket.h"
#endif

namespace Sky
{
	class Buffer;
	class Socket : public OSSocket
	{
	public:
		Bool open(String* ipAddr,u32 port);
		Void close();
		Bool read(Socket::DoneCallback cb);
		Bool write(Buffer* buffer,Socket::DoneCallback cb);
	};
}
#endif
